package top.ochiamalu.aioj.strategy.thumb.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.springframework.stereotype.Component;
import top.ochiamalu.aioj.domain.entity.Thumb;
import top.ochiamalu.aioj.enums.ThumbTypeEnum;
import top.ochiamalu.aioj.strategy.thumb.ThumbStrategy;

/**
 * 评论点赞策略
 *
 * @author ochiamalu
 * @date 2025/03/07
 */
@Component
public class CommentThumbStrategy implements ThumbStrategy {
    @Override
    public void buildQueryCondition(LambdaQueryWrapper<Thumb> queryWrapper, Long targetId) {
        queryWrapper.eq(Thumb::getTargetId, targetId)
                   .eq(Thumb::getType, ThumbTypeEnum.COMMENT.getValue());
    }

    @Override
    public void handleAfterThumb(Long targetId, boolean isAdd) {

    }
} 